package cn.net.ecode.api.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class ArticleInfo implements Serializable{

	
	private static final long serialVersionUID = -8559636345552893700L;
	
	private String id;    //编码
	private String title; //标题
	private String image;//图片
	private String description;// 描述、摘要
	private String source;// 来源（转载/原创）
	private String content;	// 内容
	private Date createDate;//创建时间
	private String createBy; //创建者
	private String articleUrl;//文章地址
	
	public ArticleInfo() {
		super();
	}
	
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getSource() {
		return source;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	public String getImage() {
		return image;
	}


	public void setImage(String image) {
		this.image = image;
	}


	public String getArticleUrl() {
		return articleUrl;
	}


	public void setArticleUrl(String articleUrl) {
		this.articleUrl = articleUrl;
	}


	public String getCreateBy() {
		return createBy;
	}


	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

}
